2022-05-10 07:01:11,556 ERROR: Exception on /user/zhang [GET] [in C:\Users\user\miniconda3\envs\microblog\lib\site-packages\flask\app.py:1455]
Traceback (most recent call last):
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\flask\app.py", line 2077, in wsgi_app
    response = self.full_dispatch_request()
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\flask\app.py", line 1525, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\flask\app.py", line 1523, in full_dispatch_request
    rv = self.dispatch_request()
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\flask\app.py", line 1509, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "C:\data\mymicroblog\app\routes.py", line 202, in user
    return render_template('user.html', user=user, posts=posts, form=form)
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\flask\templating.py", line 148, in render_template
    return _render(
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\flask\templating.py", line 128, in _render
    rv = template.render(context)
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\jinja2\environment.py", line 1291, in render
    self.environment.handle_exception()
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\jinja2\environment.py", line 926, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "C:\data\mymicroblog\app\templates\user.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "C:\data\mymicroblog\app\templates\base.html", line 38, in top-level template code
    {% block content %}{% endblock %}
  File "C:\data\mymicroblog\app\templates\user.html", line 21, in block 'content'
    {{ form.hidden_tag() }}
TypeError: hidden_tag() missing 1 required positional argument: 'self'
2022-05-10 07:03:14,267 INFO: Microblog startup [in C:\data\mymicroblog\app\__init__.py:71]
2022-05-10 07:03:29,816 ERROR: Exception on /user/zhang [GET] [in C:\Users\user\miniconda3\envs\microblog\lib\site-packages\flask\app.py:1455]
Traceback (most recent call last):
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\flask\app.py", line 2077, in wsgi_app
    response = self.full_dispatch_request()
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\flask\app.py", line 1525, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\flask\app.py", line 1523, in full_dispatch_request
    rv = self.dispatch_request()
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\flask\app.py", line 1509, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "C:\data\mymicroblog\app\routes.py", line 202, in user
    return render_template('user.html', user=user, posts=posts, form=form)
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\flask\templating.py", line 148, in render_template
    return _render(
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\flask\templating.py", line 128, in _render
    rv = template.render(context)
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\jinja2\environment.py", line 1291, in render
    self.environment.handle_exception()
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\jinja2\environment.py", line 926, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "C:\data\mymicroblog\app\templates\user.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "C:\data\mymicroblog\app\templates\base.html", line 38, in top-level template code
    {% block content %}{% endblock %}
  File "C:\data\mymicroblog\app\templates\user.html", line 21, in block 'content'
    {{ form.hidden_tag(self) }}
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\flask_wtf\form.py", line 119, in hidden_tag
    return Markup("\n".join(str(f) for f in hidden_fields(fields or self)))
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\flask_wtf\form.py", line 119, in <genexpr>
    return Markup("\n".join(str(f) for f in hidden_fields(fields or self)))
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\flask_wtf\form.py", line 110, in hidden_fields
    for f in fields:
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\jinja2\runtime.py", line 127, in __getitem__
    blocks = self.__context.blocks[name]
KeyError: 0
2022-05-10 07:04:46,638 INFO: Microblog startup [in C:\data\mymicroblog\app\__init__.py:71]
2022-05-10 07:05:13,148 ERROR: Exception on /user/zhang [GET] [in C:\Users\user\miniconda3\envs\microblog\lib\site-packages\flask\app.py:1455]
Traceback (most recent call last):
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\flask\app.py", line 2077, in wsgi_app
    response = self.full_dispatch_request()
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\flask\app.py", line 1525, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\flask\app.py", line 1523, in full_dispatch_request
    rv = self.dispatch_request()
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\flask\app.py", line 1509, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "C:\data\mymicroblog\app\routes.py", line 202, in user
    return render_template('user.html', user=user, posts=posts, form=form)
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\flask\templating.py", line 148, in render_template
    return _render(
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\flask\templating.py", line 128, in _render
    rv = template.render(context)
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\jinja2\environment.py", line 1291, in render
    self.environment.handle_exception()
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\jinja2\environment.py", line 926, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "C:\data\mymicroblog\app\templates\user.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "C:\data\mymicroblog\app\templates\base.html", line 38, in top-level template code
    {% block content %}{% endblock %}
  File "C:\data\mymicroblog\app\templates\user.html", line 21, in block 'content'
    {{ form.hidden_tag(self) }}
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\flask_wtf\form.py", line 119, in hidden_tag
    return Markup("\n".join(str(f) for f in hidden_fields(fields or self)))
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\flask_wtf\form.py", line 119, in <genexpr>
    return Markup("\n".join(str(f) for f in hidden_fields(fields or self)))
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\flask_wtf\form.py", line 110, in hidden_fields
    for f in fields:
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\jinja2\runtime.py", line 127, in __getitem__
    blocks = self.__context.blocks[name]
KeyError: 0
2022-05-10 07:08:17,566 ERROR: Exception on /login [POST] [in C:\Users\user\miniconda3\envs\microblog\lib\site-packages\flask\app.py:1455]
Traceback (most recent call last):
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\flask\app.py", line 2077, in wsgi_app
    response = self.full_dispatch_request()
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\flask\app.py", line 1525, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\flask\app.py", line 1523, in full_dispatch_request
    rv = self.dispatch_request()
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\flask\app.py", line 1509, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "C:\data\mymicroblog\app\routes.py", line 144, in login
    loc = url_parse(next_page).netloc
  File "C:\Users\user\miniconda3\envs\microblog\lib\site-packages\werkzeug\urls.py", line 478, in url_parse
    i = url.find(s(":"))
AttributeError: 'NoneType' object has no attribute 'find'
